<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Core Plot (iOS): CPTConstraints Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="customdoxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="core-plot-logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Core Plot (iOS)
   
   </div>
   <div id="projectbrief">Cocoa plotting framework for Mac OS X and iOS</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Animation&#160;&&#160;Constants</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('interface_c_p_t_constraints.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">CPTConstraints Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="CPTConstraints" --><!-- doxytag: inherits="NSObject,NSCoding-p-p,NSCopying-p-p" -->
<p>Implements a one-dimensional constrained position within a given numeric range.  
 <a href="interface_c_p_t_constraints.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for CPTConstraints:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="interface_c_p_t_constraints__inherit__graph.png" border="0" usemap="#_c_p_t_constraints_inherit__map" alt="Inheritance graph"/></div>
<map name="_c_p_t_constraints_inherit__map" id="_c_p_t_constraints_inherit__map">
<area shape="rect" id="node11" href="interface___c_p_t_constraints_fixed.html" title="Implements a one&#45;dimensional constrained position within a given numeric range." alt="" coords="12,246,173,277"/><area shape="rect" id="node13" href="interface___c_p_t_constraints_relative.html" title="Implements a one&#45;dimensional constrained position within a given numeric range." alt="" coords="198,246,375,277"/><area shape="rect" id="node2" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html" title="NSObject" alt="" coords="24,86,104,117"/><area shape="rect" id="node4" href="http://developer.apple.com/iPhone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSObject_Protocol/Reference/NSObject.html" title="\&lt;NSObject&#45;p\&gt;" alt="" coords="5,6,123,37"/><area shape="rect" id="node6" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSCoding_Protocol/Reference/Reference.html" title="\&lt;NSCoding&#45;p\&gt;" alt="" coords="128,86,249,117"/><area shape="rect" id="node8" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSCopying_Protocol/Reference/Reference.html" title="\&lt;NSCopying&#45;p\&gt;" alt="" coords="274,86,403,117"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for CPTConstraints:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="interface_c_p_t_constraints__coll__graph.png" border="0" usemap="#_c_p_t_constraints_coll__map" alt="Collaboration graph"/></div>
<map name="_c_p_t_constraints_coll__map" id="_c_p_t_constraints_coll__map">
<area shape="rect" id="node2" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html" title="NSObject" alt="" coords="24,86,104,117"/><area shape="rect" id="node4" href="http://developer.apple.com/iPhone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSObject_Protocol/Reference/NSObject.html" title="\&lt;NSObject&#45;p\&gt;" alt="" coords="5,6,123,37"/><area shape="rect" id="node6" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSCoding_Protocol/Reference/Reference.html" title="\&lt;NSCoding&#45;p\&gt;" alt="" coords="128,86,249,117"/><area shape="rect" id="node8" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSCopying_Protocol/Reference/Reference.html" title="\&lt;NSCopying&#45;p\&gt;" alt="" coords="274,86,403,117"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="class_c_p_t_constraints-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Public Class Methods</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Factory Methods</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="el" href="interface_c_p_t_constraints.html">CPTConstraints</a> *)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_c_p_t_constraints.html#aa7abefa93642ba05aab96f3f000ecc6a">constraintWithLowerOffset:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates and returns a new <a class="el" href="interface_c_p_t_constraints.html" title="Implements a one-dimensional constrained position within a given numeric range.">CPTConstraints</a> instance initialized with a fixed offset from the lower bound.  <a href="#aa7abefa93642ba05aab96f3f000ecc6a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="el" href="interface_c_p_t_constraints.html">CPTConstraints</a> *)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_c_p_t_constraints.html#aa446279fed6d3e5b743520ae580718ea">constraintWithUpperOffset:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates and returns a new <a class="el" href="interface_c_p_t_constraints.html" title="Implements a one-dimensional constrained position within a given numeric range.">CPTConstraints</a> instance initialized with a fixed offset from the upper bound.  <a href="#aa446279fed6d3e5b743520ae580718ea"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="el" href="interface_c_p_t_constraints.html">CPTConstraints</a> *)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_c_p_t_constraints.html#a213ba65d803f1d8b6a255fdf7da9aa72">constraintWithRelativeOffset:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates and returns a new <a class="el" href="interface_c_p_t_constraints.html" title="Implements a one-dimensional constrained position within a given numeric range.">CPTConstraints</a> instance initialized with a proportional offset relative to the bounds.  <a href="#a213ba65d803f1d8b6a255fdf7da9aa72"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Instance Methods</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Initialization</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">id</a>)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_constraints.html#a125152878889655fb812140f79a4af56">initWithLowerOffset:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes a newly allocated <a class="el" href="interface_c_p_t_constraints.html" title="Implements a one-dimensional constrained position within a given numeric range.">CPTConstraints</a> instance initialized with a fixed offset from the lower bound.  <a href="#a125152878889655fb812140f79a4af56"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">id</a>)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_constraints.html#a0188b6fa9cb67fb8cc3b3ef0f8181af4">initWithUpperOffset:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes a newly allocated <a class="el" href="interface_c_p_t_constraints.html" title="Implements a one-dimensional constrained position within a given numeric range.">CPTConstraints</a> instance initialized with a fixed offset from the upper bound.  <a href="#a0188b6fa9cb67fb8cc3b3ef0f8181af4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">id</a>)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_constraints.html#ab976a0b91ab45e268f31b37a1d3a9c00">initWithRelativeOffset:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes a newly allocated <a class="el" href="interface_c_p_t_constraints.html" title="Implements a one-dimensional constrained position within a given numeric range.">CPTConstraints</a> instance initialized with a proportional offset relative to the bounds.  <a href="#ab976a0b91ab45e268f31b37a1d3a9c00"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Comparison</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a>)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_constraints.html#abfb058646b0a84ec182fad04bda0f91f">isEqualToConstraint:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines whether a given constraint is equal to the receiver.  <a href="#abfb058646b0a84ec182fad04bda0f91f"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Position</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(CGFloat)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_constraints.html#a1acc2b64398c613591a0b316822c9c3c">positionForLowerBound:upperBound:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute the position given a range of values.  <a href="#a1acc2b64398c613591a0b316822c9c3c"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Implements a one-dimensional constrained position within a given numeric range. </p>
<p>Supports fixed distance from either end of the range and a proportional fraction of the range. </p>
</div><hr/><h2>Method Documentation</h2>
<a class="anchor" id="aa7abefa93642ba05aab96f3f000ecc6a"></a><!-- doxytag: member="CPTConstraints::constraintWithLowerOffset:" ref="aa7abefa93642ba05aab96f3f000ecc6a" args="(CGFloat newOffset)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (<a class="el" href="interface_c_p_t_constraints.html">CPTConstraints</a> *) <a class="el" href="interface_c_p_t_constraints.html#aa7abefa93642ba05aab96f3f000ecc6a">constraintWithLowerOffset:</a> </td>
          <td></td>
          <td class="paramtype">(CGFloat)&#160;</td>
          <td class="paramname"><em>newOffset</em></td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates and returns a new <a class="el" href="interface_c_p_t_constraints.html" title="Implements a one-dimensional constrained position within a given numeric range.">CPTConstraints</a> instance initialized with a fixed offset from the lower bound. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">newOffset</td><td>The offset. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A new <a class="el" href="interface_c_p_t_constraints.html" title="Implements a one-dimensional constrained position within a given numeric range.">CPTConstraints</a> instance initialized with the given offset. </dd></dl>

</div>
</div>
<a class="anchor" id="a213ba65d803f1d8b6a255fdf7da9aa72"></a><!-- doxytag: member="CPTConstraints::constraintWithRelativeOffset:" ref="a213ba65d803f1d8b6a255fdf7da9aa72" args="(CGFloat newOffset)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (<a class="el" href="interface_c_p_t_constraints.html">CPTConstraints</a> *) <a class="el" href="interface_c_p_t_constraints.html#a213ba65d803f1d8b6a255fdf7da9aa72">constraintWithRelativeOffset:</a> </td>
          <td></td>
          <td class="paramtype">(CGFloat)&#160;</td>
          <td class="paramname"><em>newOffset</em></td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates and returns a new <a class="el" href="interface_c_p_t_constraints.html" title="Implements a one-dimensional constrained position within a given numeric range.">CPTConstraints</a> instance initialized with a proportional offset relative to the bounds. </p>
<p>For example, an offset of 0.0 will return a position equal to the lower bound, 1.0 will return the upper bound, and 0.5 will return a point midway between the two bounds.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">newOffset</td><td>The offset. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A new <a class="el" href="interface_c_p_t_constraints.html" title="Implements a one-dimensional constrained position within a given numeric range.">CPTConstraints</a> instance initialized with the given offset. </dd></dl>

</div>
</div>
<a class="anchor" id="aa446279fed6d3e5b743520ae580718ea"></a><!-- doxytag: member="CPTConstraints::constraintWithUpperOffset:" ref="aa446279fed6d3e5b743520ae580718ea" args="(CGFloat newOffset)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (<a class="el" href="interface_c_p_t_constraints.html">CPTConstraints</a> *) <a class="el" href="interface_c_p_t_constraints.html#aa446279fed6d3e5b743520ae580718ea">constraintWithUpperOffset:</a> </td>
          <td></td>
          <td class="paramtype">(CGFloat)&#160;</td>
          <td class="paramname"><em>newOffset</em></td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates and returns a new <a class="el" href="interface_c_p_t_constraints.html" title="Implements a one-dimensional constrained position within a given numeric range.">CPTConstraints</a> instance initialized with a fixed offset from the upper bound. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">newOffset</td><td>The offset. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A new <a class="el" href="interface_c_p_t_constraints.html" title="Implements a one-dimensional constrained position within a given numeric range.">CPTConstraints</a> instance initialized with the given offset. </dd></dl>

</div>
</div>
<a class="anchor" id="a125152878889655fb812140f79a4af56"></a><!-- doxytag: member="CPTConstraints::initWithLowerOffset:" ref="a125152878889655fb812140f79a4af56" args="(CGFloat newOffset)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">id</a>) <a class="el" href="interface_c_p_t_constraints.html#a125152878889655fb812140f79a4af56">initWithLowerOffset:</a> </td>
          <td></td>
          <td class="paramtype">(CGFloat)&#160;</td>
          <td class="paramname"><em>newOffset</em></td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initializes a newly allocated <a class="el" href="interface_c_p_t_constraints.html" title="Implements a one-dimensional constrained position within a given numeric range.">CPTConstraints</a> instance initialized with a fixed offset from the lower bound. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">newOffset</td><td>The offset. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The initialized <a class="el" href="interface_c_p_t_constraints.html" title="Implements a one-dimensional constrained position within a given numeric range.">CPTConstraints</a> object. </dd></dl>

<p>Reimplemented in <a class="el" href="interface___c_p_t_constraints_fixed.html#a55d32e2823b0812f184c0bba8c2374e0">_CPTConstraintsFixed</a>.</p>

</div>
</div>
<a class="anchor" id="ab976a0b91ab45e268f31b37a1d3a9c00"></a><!-- doxytag: member="CPTConstraints::initWithRelativeOffset:" ref="ab976a0b91ab45e268f31b37a1d3a9c00" args="(CGFloat newOffset)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">id</a>) <a class="el" href="interface_c_p_t_constraints.html#ab976a0b91ab45e268f31b37a1d3a9c00">initWithRelativeOffset:</a> </td>
          <td></td>
          <td class="paramtype">(CGFloat)&#160;</td>
          <td class="paramname"><em>newOffset</em></td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initializes a newly allocated <a class="el" href="interface_c_p_t_constraints.html" title="Implements a one-dimensional constrained position within a given numeric range.">CPTConstraints</a> instance initialized with a proportional offset relative to the bounds. </p>
<p>For example, an offset of 0.0 will return a position equal to the lower bound, 1.0 will return the upper bound, and 0.5 will return a point midway between the two bounds.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">newOffset</td><td>The offset. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The initialized <a class="el" href="interface_c_p_t_constraints.html" title="Implements a one-dimensional constrained position within a given numeric range.">CPTConstraints</a> object. </dd></dl>

<p>Reimplemented in <a class="el" href="interface___c_p_t_constraints_relative.html#a505e4d3a35ac98d636f96d5981f162ca">_CPTConstraintsRelative</a>.</p>

</div>
</div>
<a class="anchor" id="a0188b6fa9cb67fb8cc3b3ef0f8181af4"></a><!-- doxytag: member="CPTConstraints::initWithUpperOffset:" ref="a0188b6fa9cb67fb8cc3b3ef0f8181af4" args="(CGFloat newOffset)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">id</a>) <a class="el" href="interface_c_p_t_constraints.html#a0188b6fa9cb67fb8cc3b3ef0f8181af4">initWithUpperOffset:</a> </td>
          <td></td>
          <td class="paramtype">(CGFloat)&#160;</td>
          <td class="paramname"><em>newOffset</em></td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initializes a newly allocated <a class="el" href="interface_c_p_t_constraints.html" title="Implements a one-dimensional constrained position within a given numeric range.">CPTConstraints</a> instance initialized with a fixed offset from the upper bound. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">newOffset</td><td>The offset. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The initialized <a class="el" href="interface_c_p_t_constraints.html" title="Implements a one-dimensional constrained position within a given numeric range.">CPTConstraints</a> object. </dd></dl>

<p>Reimplemented in <a class="el" href="interface___c_p_t_constraints_fixed.html#a4204b170b13eedcaa490b035ccf603d6">_CPTConstraintsFixed</a>.</p>

</div>
</div>
<a class="anchor" id="abfb058646b0a84ec182fad04bda0f91f"></a><!-- doxytag: member="CPTConstraints::isEqualToConstraint:" ref="abfb058646b0a84ec182fad04bda0f91f" args="(CPTConstraints *otherConstraint)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a>) <a class="el" href="interface_c_p_t_constraints.html#abfb058646b0a84ec182fad04bda0f91f">isEqualToConstraint:</a> </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_c_p_t_constraints.html">CPTConstraints</a> *)&#160;</td>
          <td class="paramname"><em>otherConstraint</em></td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Determines whether a given constraint is equal to the receiver. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">otherConstraint</td><td>The constraint to check. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>YES if the constraints are equal. </dd></dl>

</div>
</div>
<a class="anchor" id="a1acc2b64398c613591a0b316822c9c3c"></a><!-- doxytag: member="CPTConstraints::positionForLowerBound:upperBound:" ref="a1acc2b64398c613591a0b316822c9c3c" args="(CGFloat lowerBound,[upperBound] CGFloat upperBound)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (CGFloat) positionForLowerBound: </td>
          <td></td>
          <td class="paramtype">(CGFloat)&#160;</td>
          <td class="paramname"><em>lowerBound</em></td>
        </tr>
        <tr>
          <td class="paramkey">upperBound:</td>
          <td></td>
          <td class="paramtype">(CGFloat)&#160;</td>
          <td class="paramname"><em>upperBound</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Compute the position given a range of values. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">lowerBound</td><td>The lower bound; must be less than or equal to the upperBound. </td></tr>
    <tr><td class="paramname">upperBound</td><td>The upper bound; must be greater than or equal to the lowerBound. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The calculated position. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>Source/<a class="el" href="_c_p_t_constraints_8h_source.html">CPTConstraints.h</a></li>
<li>Source/CPTConstraints.m</li>
</ul>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="interface_c_p_t_constraints.html">CPTConstraints</a>      </li>

    <li class="footer">Generated by <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a></li>
   </ul>
 </div>


</body>
</html>
